package com.example.redistest.controller;

import com.example.redistest.entity.EleBaseAgencyEntity;
import com.example.redistest.service.AgencyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {
    @Autowired
    private AgencyService service;
    ;
    @RequestMapping("/list")
    public List<EleBaseAgencyEntity> getList() {
        return service.getAgency();
    }
}
